add_all_copy

function add_all_copy(values: collection<-T>): list<T>

Returns a new list that is the concatenation of the elements of this list with those of the given collection.

a.add_all_copy(b) is equivalent to a + b, where a and b are lists.

Examples:

  • [].add_all_copy([]) returns []

  • [1].add_all_copy([2]) returns [1, 2]

  • [[1]].add_all_copy([[2]]) returns [[1], [2]]

Since

0.14.16

Parameters

values

the other collection